package person.burgess.regexandgame.regex.model;

/**
 * 
 * Matching content and properties, collocation with ContentMatch
 * 
 * @author Burgess Li
 *
 */
public class Field {
	
	private String value;
	private int beginIndex;
	private int endIndex;
	
	public Field () {
		this.value = null;
		this.beginIndex = -1;
		this.endIndex = -1;
	}
	
	public Field (String value, int beginIndex, int endIndex) {
		this.value = value;
		this.beginIndex = beginIndex;
		this.endIndex = endIndex;
	}
	
	public int getBeginIndex() {
		return beginIndex;
	}
	
	public void setBeginIndex(int beginIndex) {
		this.beginIndex = beginIndex;
	}
	
	public int getEndIndex() {
		return endIndex;
	}
	
	public void setEndIndex(int endIndex) {
		this.endIndex = endIndex;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
}
